/**
 * 
 */
package anvil;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import autil.StatReporter;

/**
 * @author liutao
 * 
 */
public class PropertyLoader {
	public ArrayList<String> seeds = new ArrayList<String>();
	public StatReporter sr = new StatReporter();
	public ArrayList<String> authcodes = new ArrayList<String>();

	public PropertyLoader() {
		super();
	}

	public PropertyLoader(ArrayList<String> seeds, ArrayList<String> authcodes) {
		super();
		this.seeds = seeds;
		this.authcodes = authcodes;
	}
	
	/**
	 * @param args
	 */
	public void run()
	{
		
	}
	public void localRun()
	{
		try {
			BufferedReader br = new BufferedReader(new FileReader(new File("Config_Base\\accessTokens.txt")));
			String s = "";
			while((s=br.readLine())!=null)
			{
				this.authcodes.add(s);
			}
			
			br = new BufferedReader(new FileReader(new File("Test_Data\\oriseednames5001")));
			s = "";
			while((s=br.readLine())!=null)
			{
				this.seeds.add(s.split("\t")[1]);
			}
			
			
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		// PropertyLoader p = new PropertyLoader();
	}

}
